package com.example.Service.Impl;

import com.example.Service.StudentService;
import com.example.mapper.StudentMapper;
import com.example.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Student selectStudent(Integer id) {
        Student student = studentMapper.selectByPrimaryKey(id);
        return student;
    }
}
